package com.hgxd.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hgxd.annotation.OperationLogAnnotation;
import com.hgxd.entity.pojo.CntrEntity;
import com.hgxd.entity.pojo.HumEntity;
import com.hgxd.result.Result;
import com.hgxd.service.CntrService;
import com.hgxd.service.HumService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * @Author: wtf
 * @Description: 柜体表
 * @Date: 2022/10/20/11:21
 */
@Api(tags = "柜体表")
@CrossOrigin
@RestController
@RequestMapping("/api/cntr")
public class CntrController {

    @Resource(name = "CntrService")
    private CntrService cntrService;

    /**
     * 查询全部柜体
     */
    @ApiOperation(value = "查询全部柜体")
    @OperationLogAnnotation(operModule = "柜体表模块-查询全部柜体", operType = "查询", operContent = "查询全部柜体")
    @GetMapping("/getAll")
    public Result<List<CntrEntity>> getAllCntr() {
        
        return Result.ok(cntrService.list());

    }
}
